package com.hoo.mapper.order;

import java.util.List;

import com.hoo.entity.order.Ticket;
import com.hoo.form.order.TicketForm;
import com.hoo.mapper.account.SqlMapper;

public interface TicketMapper extends SqlMapper{
	
	public List<Ticket> getAllTicket();
	
	public Ticket getTicketByTicketNo(String ticketNo);
	
	public int getTicketCount(TicketForm form);
	
	public List<Ticket> getTicketList(TicketForm form);
	
	public int insertTicket(Ticket ticket);
	
	public int updateTicket(Ticket ticket);

	public Ticket getTicketOnUse();

	public int updateAllTicketStatus(int i);
	
	public int updateTicketResidueNum(Ticket ticket);

}
